package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.invoicings.entity.PurchaseReturnDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PurchaseReturnDetailsMapper extends BaseMapper<PurchaseReturnDetails> {

    /**
     * 查询所有采购退货明细
     * @param map
     * @return
     */
    List<PurchaseReturnDetails> selectPurchaseReturnDetailsAll(Map<String, Object> map);

    /**
     * 根据id获取采购退货明细
     * @param id
     * @return
     */
    PurchaseReturnDetails selectPurchaseReturnDetailsById(Integer id);

}